#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import socket
import time

s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

data = bytes("123", encoding = "utf8")

#while(True)
for i in range(1):
    # 发送数据:
    s.sendto(data, ('127.0.0.1', 9999))
    s.sendto(data, ('172.23.81.14', 9999))
    print("send data ... \n")
    time.sleep(2)

s.close()